export default class CourseInfoController {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/list', 'post', params, axiosOption, httpOption);
  }

  static view (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/view', 'get', params, axiosOption, httpOption);
  }

  static export (sender, params, fileName) {
    return sender.download('/admin/app/courseInfo/export', params, fileName);
  }

  static import (sender, params) {
    return sender.upload('/admin/app/courseInfo/import', params);
  }

  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/add', 'post', params, axiosOption, httpOption);
  }

  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/update', 'post', params, axiosOption, httpOption);
  }

  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/delete', 'post', params, axiosOption, httpOption);
  }

  static deleteBatch (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/deleteBatch', 'post', params, axiosOption, httpOption);
  }


   // 我的课程
   static getMyCourse (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/student/getMyCourse', 'post', params, axiosOption, httpOption);
  }
   static getCourseInfoSignByStudentId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentSignIn/getCourseInfoSignByStudentId', 'get', params, axiosOption, httpOption);
  }

  // 课程管理
  static getCourse (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/teacher/getCourse', 'post', params, axiosOption, httpOption);
  }
  static QRcodecreate (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentSignIn/QRcode/create', 'post', params, axiosOption, httpOption);
  }
  static getMyActivityList (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/classActivity/getMyActivityList', 'get', params, axiosOption, httpOption);
  }


  // 老师权限的接口
  static getClassListByTeacherId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/classInfo/getClassListByTeacherId', 'get', params, axiosOption, httpOption);
  }
  static getStudentInfoByClassId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentInfo/getStudentInfoByClassId', 'get', params, axiosOption, httpOption);
  }
  static getstudentInfoView (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentInfo/view', 'get', params, axiosOption, httpOption);
  }

  // 签到管理
  static getCourseByTeacherId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseInfo/teacher/getCourseByTeacherId', 'get', params, axiosOption, httpOption);
  }
  static listSignInByCourseId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentSignIn/listSignInByCourseId', 'post', params, axiosOption, httpOption);
  }

  // 通知管理
  static getActivityList (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/classActivity/getActivityList', 'get', params, axiosOption, httpOption);
  }
  static listDict (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/classInfo/listDict', 'get', params, axiosOption, httpOption);
  }
  static teacherInfo (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/teacherInfo/listDict', 'get', params, axiosOption, httpOption);
  }
  static classActivityAdd (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/classActivity/add', 'post', params, axiosOption, httpOption);
  }
  
  // 学校权限审核报名
  
  static getStudentInfoList (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/studentInfo/school/getStudentInfoList', 'get', params, axiosOption, httpOption);
  }

  //干部
  static officerInfoAdd (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/officerInfo/add', 'post', params, axiosOption, httpOption);
  }
  static mobileList (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/officerInfo/school/mobileList', 'get', params, axiosOption, httpOption);
  }
  static officerInfDelete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/officerInfo/delete', 'post', params, axiosOption, httpOption);
  }
  static getClassByOfficerId (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/officerInfo/getClassByOfficerId', 'get', params, axiosOption, httpOption);
  }

  //班级管理
  static classManagement (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/classInfo/getClassListByStudentId', 'get', params, axiosOption, httpOption);
  }
  
  // 请假
  static leaveInfoAdd (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/leaveInfo/add', 'post', params, axiosOption, httpOption);
  }
  // 课程结束之后评价
  static courseEvaluateAdd (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/courseEvaluate/add', 'post', params, axiosOption, httpOption);
  }
  static getScoreDetail (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/scoreDetail/getScoreDetail', 'post', params, axiosOption, httpOption);
  }
  //获取未评分的试卷
  static getNotScorePaper (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/tHistoryPaper/list', 'post', params, axiosOption, httpOption);
  }
  //获取未评分的试卷的详情
  static getNotScorePaperDetail (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/tHistoryPaper/getHisPaperScore', 'post', params, axiosOption, httpOption);
  }
  // 提交评分接口
  static submitScore (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/tAnswerRecord/updateScore', 'post', params, axiosOption, httpOption);
  }
}
